<?php
namespace Entities\Corp;

use Doctrine\Common\Collections\ArrayCollection;

/**
 * @Entity(repositoryClass="\Entities\Corp\PessoaFisicaRepository")
 * @Table(name="corp_pessoafisica")
 */
class PessoaFisica extends Pessoa
{

	/**
	 * @Column(type="string", length=20, nullable=true)
	 */
	protected $nu_rg;

	/**
	 * @Column(type="string", length=20, nullable=true)
	 */
	protected $nu_cpf;

	/**
	 * @Column(type="string", length=255, nullable=true)
	 */
	protected $senha;

	/**
	 * @Column(type="string", length=255, nullable=true)
	 */
	protected $id_google;

	/**
	 * @Column(type="string", length=255, nullable=true)
	 */
	protected $id_facebook;

	public function setNuRg($value)
	{
		$this->nu_rg = $value;
	}

	public function setNuCpf($value)
	{
		$this->nu_cpf = str_replace(array('.','-',),'',$value);
	}

	public function setSenha($value)
	{
		$this->senha = md5($value);
	}

	public function getNuCpf()
	{
		return $this->nu_cpf;
	}
}